﻿using System;
using Jet.Utilities.Serialization;
using Jet.Utilities.UnitTests;
using NUnit.Framework;

namespace Jet.Utilities.Tests
{
	[TestFixture]
	public class TestsExceptionHelperTests
	{
		[Test]
		public void TestAll()
		{
			TestsExceptionHelper.TestExceptionDefaultCtor<Exception>();
			TestsExceptionHelper.TestExceptionMessageCtor<Exception>();
			TestsExceptionHelper.TestExceptionMessageInnerCtor<Exception>();

			var service = new SerializationService();
			TestsExceptionHelper.TestExceptionSerialization<Exception>(service);
			TestsExceptionHelper.TestAllExceptionCtors<Exception>(service);
		}
	}
}
